﻿@model Site3AI.Models.aspnet_Users

@{
    ViewBag.Title = "个人信息";
    ViewBag.Back = "/";
}

<div data-role="navbar">
    <ul>
        <li>@Html.ActionLink("基本信息", "Me", null, new { @class = "ui-btn-active site-nav-active" })</li>
        <li>@Html.ActionLink("历次住院", "MyEnhosp")</li>
    </ul>
</div>
<!-- /navbar -->

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="edit-fieldset">     
       <legend>基本信息</legend>
        <div class="hidden-fields">
            @Html.HiddenFor(model => model.UserId)
        </div>        
        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
        <div class="editor-label">
            <label>密码</label>
        </div>        
        <div class="editor-field">
            @Html.Password("Password")
        </div>
        @Html.EditorFor(model => model.SheBaoHao, "TxtField")        
        @Html.EditorFor(model => model.MobileAlias, "TxtField")
        @Html.EditorFor(model => model.MobileAliasB, "TxtField")
        @Html.EditorFor(model => model.HomePhone, "TxtField")
        @Html.EditorFor(model => model.HomePhoneB, "TxtField")
        @Html.EditorFor(model => model.OtherPhone, "TxtField")
        @Html.EditorFor(model => model.OtherPhoneB, "TxtField")
        @Html.EditorFor(model => model.HuanZheLaiYuan, "TxtField")
        @Html.EditorFor(model => model.Gender, "SelField", new { Selects = new SelectList(",男,女".Split(','), Model.Gender) })
        @Html.EditorFor(model => model.BirthDay, "TxtField")
        @Html.EditorFor(model => model.UserHeight, "TxtField")
        @Html.EditorFor(model => model.UserWeight, "TxtField")
        @Html.EditorFor(model => model.IDCodeType, "SelField", new { Selects = new SelectList("身份证,士官证,学生证,驾驶证,护照,港澳通行证,其他证件".Split(','), Model.IDCodeType) })
        @Html.EditorFor(model => model.IDCode, "TxtField")
        @Html.EditorFor(model => model.Address, "TxtField")
        @Html.EditorFor(model => model.PostCode, "TxtField")
        @Html.EditorFor(model => model.Email, "TxtField")   

        <p>
            <input type="submit" value="保存" onclick="$(this).hide();" />
        </p>
    </fieldset>
}

@section Scripts{
     @Scripts.Render("~/bundles/jqueryval")
    <style type="text/css">
        .ui-mobile fieldset { margin: 0 0 0 0.1em; }
   
        .editor-label, .editor-field {
            line-height: 2em;            
            min-width: 64px;
            width:100%;
            /*margin-left:-15px;
            border-bottom: 1px dotted #eaeaea;*/
            /*border-top: 2px solid white;*/
            /*height: 40px;*/
        }

        .editor-label {
            /*float: left;*/
            background-color: #f1f1f1;
            background-image:url(/Content/Images/vertical-red.png);
            background-repeat:no-repeat;
            /*clear: left;*/
            font-weight: bold;
            line-height: 2em;
            padding: 0 1em 0 1em;
        }

        .editor-field {
            /*float: left;*/
            clear: right;
            background-color: white;
            font-size:1em;
        }
        .ui-input-text input, textarea.ui-input-text {
            padding-left:0.2em;
            padding-right:0.2em;
        }
    </style>
}